import json


class Configuration:
    def __init__(self, path:str="config.json"):
        with open(path, 'r', encoding="utf8") as f:
            self.__settings = json.load(f)

    def get_data(self) -> tuple:
        return self.__settings['api_id'], self.__settings['api_hash']

    def get_message(self) -> str:
        return self.__settings['text']
